/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its licensors,
* any reproduction, modification, use or disclosure of MediaTek Software,
* and information contained herein, in whole or in part, shall be strictly prohibited.
*/
/* MediaTek Inc. (C) 2015. All rights reserved.
*
* BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
* THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
* CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
* SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
* STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
* CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*/
#ifndef __CCCI_LD_MD_ERRNO_H__
#define __CCCI_LD_MD_ERRNO_H__

enum {
	LD_ERR_NULL_PTR = 1,
	LD_ERR_GET_COM_CHK_HDR_FAIL,
	LD_ERR_CHK_HDR_PATTERN,
	LD_ERR_RESERVE_MEM_NOT_ENOUGH,
	LD_ERR_ASS_FUNC_ALLOC_MEM_FAIL,
	LD_ERR_ASS_FUNC_GET_CHK_HDR_FAIL,
	LD_ERR_ASS_FIND_MAIN_INF_FAIL,
	LD_ERR_ASS_FIND_DSP_INF_FAIL,
	LD_ERR_ASS_FIND_ARMV7_INF_FAIL,
	LD_ERR_ASS_FIND_RAMDISK_INF_FAIL,
	LD_ERR_ASS_FIND_L1CORE_INF_FAIL,
	LD_ERR_TAG_BUF_FULL,
	LD_ERR_PAD_SIZE_LESS_THAN_64K,
	LD_ERR_PAD_INVALID_INF,
	LD_ERR_PAD_FREE_INF_ABNORMAL,
	LD_ERR_PAD_OVER_TWO_REGION,
	LD_ERR_PAD_MISC,
	LD_ERR_PAD_REGION_NOT_ENOUGH,
	LD_ERR_PAD_NO_REGION_RETRIEVE,
	LD_ERR_OPT_SETTING_INVALID,
	LD_ERR_OPT_NOT_FOUND,
	LD_ERR_OPT_CMD_BUF_ALLOC_FAIL,
	LD_ERR_PT_DEV_NULL,
	LD_ERR_PT_NOT_FOUND,
	LD_ERR_PT_READ_RAW_FAIL,
	LD_ERR_PT_IMG_LIST_NULL,
	LD_ERR_PT_ALLOC_HDR_MEM_FAIL,
	LD_ERR_PT_READ_HDR_SIZE_ABNORMAL,
	LD_ERR_PT_P_HDR_MAGIC_MIS_MATCH,
	LD_ERR_PT_MAIN_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